const path = require('path');

function resolve (dir) {
  return path.join(__dirname, dir);
}

module.exports = {
    publicPath: './',
    devServer: {
    // can be overwritten by process.env.HOST
    host: '0.0.0.0',  
    port: 8888
    },
    chainWebpack: config => {
    config.resolve.alias
        .set('@', resolve('src'))
        .set('src', resolve('src'))
        .set('common', resolve('src/common'))
        .set('CSS', resolve('src/assets/css'))
        .set('components', resolve('src/components'));
    },
    // 关闭代码格式检查
    lintOnSave: false
};